package com.mou.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mou.dto.ChatBoxDTO;
import com.mou.dto.MessageDTO;
import com.mou.dto.MessageQueryDTO;
import com.mou.entity.Message;
import com.mou.vo.ChatBoxVO;
import com.mou.vo.MessageVO;


import javax.validation.Valid;
import java.util.List;

public interface ChatService extends IService<Message> {
    List<Integer> sendMessage(@Valid MessageDTO messageDTO);

    List<MessageVO> getMessages(MessageQueryDTO messageQueryDTO);

    void markMessageAsRead(Integer id);

    List<ChatBoxVO> getChatBox();

    void addChatBox(ChatBoxDTO chatBoxDTO);
}
